using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Thaire.Investment.Domains.Transaction
{
   
    public class LoansInterestDetail 
    {
        #region Properties
              // LOANS_INTEREST_DETAIL_ID
        public virtual int LoansInterestDetailID { set; get; }
      // INTEREST_HEADER_ID
        public virtual int? InterestHeaderID { set; get; }
      // INTEREST_PERIOD
        public virtual decimal? InterestPeriod { set; get; }
      // MLR_DATE
        public virtual DateTime? MlrDate { set; get; }
      // MLR_RATE
        public virtual decimal? MlrRate { set; get; }
      // MLR_MINUS
        public virtual decimal? MlrMinus { set; get; }
      // INTEREST_RATE
        public virtual decimal? InterestRate { set; get; }
      // UPDATE_INFO
        public virtual String UpdateInfo { set; get; }
      // INSTALLMENT
        public virtual decimal? Installment { set; get; }
      // CREATE_DATE
        public virtual DateTime? CreateDate { set; get; }
      // CREATE_BY
        public virtual String CreateBY { set; get; }
      // MODIFY_DATE
        public virtual DateTime? ModifyDate { set; get; }
      // MODIFY_BY
        public virtual String ModifyBY { set; get; }

        #endregion

        

        public override bool Equals(object obj)
        {
            if(obj == null)
                return false;
            if(obj.GetType() != typeof(LoansInterestDetail) && !(obj is LoansInterestDetail))
                return false;
            return ToString().Equals(obj.ToString());
        }

        public override int GetHashCode()
        {
            return ToString().GetHashCode();
        }

        public override string ToString()
        {
            return string.Format("{0}",LoansInterestDetailID);
        }

    }


}